// 这里是导航组件
import React, { Component } from 'react';
import {
    View,
    Text,
    TouchableOpacity,
} from 'react-native';

import { homeoneStyle as styles } from '../../../../styles';

var Dimensions = require('Dimensions');
var width = Dimensions.get('window').width;
var height = Dimensions.get('window').height;


import stirageUtil from '../../../util/AsyncStorageUtil'

export default class Nav extends Component {

    constructor(props) {            //构造器只执行一次
        super(props);
    };

    render() {
        return (
            <View style={styles.select}>
                <TouchableOpacity style={[styles.input, { width: width * 0.95 }]}
                    onPress={() => {
                        this.props.navigation.navigate('Select');
                    }} activeOpacity={1}
                >
                    <Text style={styles.inputtxt}>搜索职位</Text>
                </TouchableOpacity>
            </View>


        )
    }

    test(){
        stirageUtil.delete("accountToken")
    }
}
